import { utils } from 'hi-ui';
export default {
    id: "MoneyAccountEntity",
    returnTotal:true,
    modelFile: "database/moneyAccount/dataset/MoneyAccountEntity.xml",
    sortFields: [
        "FID",
        "FDESC",
        "FBANKID",
        "FBANKDESC",
        "FCOMPANY",
        "FCREATEDATE",
        "FUSERID",
        "FENTERPRISEDESC",
        "FENTERPRISEID",
        "FACCOUNTNAME"
    ],
    fields: {
        FID: {
            name: "FID", //字段ID
            label: "ID", //字段描述
            dbtype: "dbString", //数据类型
            default: {
                //默认值
                //rule: 'first', //prior   填充规则
                exps: (data) => {
                    //填充表达式
                    return utils.string.guid();
                },
            },
        },

        FDESC: {
            name: "FDESC", //字段ID
            label: "账户名称", //字段描述
            dbtype: "dbString",//数据类型
            required: true,
            length: 25,
        },
        FACCOUNTNAME: {
            name: "FACCOUNTNAME", //字段ID
            label: "户主姓名", //字段描述
            dbtype: "dbString",//数据类型
            required: true,
            length: 25,
        },
        FBANKID: {
            name: "FBANKID", //字段ID
            label: "银行帐号", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
        },

        FBANKDESC: {
            name: "FBANKDESC", //字段ID
            label: "银行名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
            required: true,
        },
        FBANKADDR: {
            name: "FBANKADDR", //字段ID
            label: "银行地址", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },

        FENTERPRISEDESC: {
            name: "FENTERPRISEDESC", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },
        FENTERPRISEID: {
            name: "FENTERPRISEID", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },

        FUSERID: {
            name: "FUSERID", //字段ID
            label: "创建人ID", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,

        },
        FUSERDESC: {
            name: "FUSERDESC", //字段ID
            label: "创建人", //字段描述
            dbtype: "dbString", //数据类型
            length: 25,
        },



        FCREATEDATE: {
            name: "FCREATEDATE", //字段ID
            label: "创建时间", //字段描述
            dbtype: "dbDate", //数据类型
            readonly: true,
            default: {
                //默认值
                exps: (data) => {
                    //填充表达式
                    return utils.date.format(new Date(), "yyyy-MM-dd HH:mm:ss");
                },
            },
        },

    }
}